package com.rupeng.service;

import java.util.Map;

import com.rupeng.annotation.RupengCacheable;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.rupeng.mapper.AdminUserRoleMapper;
import com.rupeng.pojo.AdminUser;
import com.rupeng.pojo.AdminUserRole;
import com.rupeng.pojo.Role;

@Service
@RupengCacheable
public class AdminUserRoleService extends ManyToManyBaseService<AdminUserRole, AdminUser, Role> {
	@Autowired
	private AdminUserRoleMapper mapper;
	public boolean checkPermission(Map<String, Object> params) {
		int count = mapper.checkPermission(params);
		return count>0;
	}

}
